var dbserver = require('../dao/dbserver')

// 用户注册
exports.signUp = function(req,res){
    let name = req.body.name;
    let mail = req.body.mail;
    let pwd = req.body.pwd;
    
    // res.send(req.body)
    dbserver.buldUser(name,mail,pwd,res);
}

// 用户或者邮箱判断存在
exports.jundeValue = (req,res)=>{
    let data = req.body.data;
    let type = req.body.type;
    dbserver.countUserValue(data,type,res);
}
